package com.liveneo.adapter.base.mapper;

import com.liveneo.adapter.base.entity.PrpmMobilePushMsg;
import com.liveneo.adapter.base.entity.PrpmMobilePushMsgExample;
import com.liveneo.adapter.base.support.BaseMapper;
import com.liveneo.adapter.mobile.model.request.MsgListRequest;

import java.util.List;
import org.apache.ibatis.annotations.Param;

/**
 * 推送信息表 映射器的接口
 * 依赖配置文件：PrpmMobilePushMsgMapper.xml
 * 
 * @author fucy
 * @since 2016-06-05
 */
public interface PrpmMobilePushMsgMapper extends BaseMapper<PrpmMobilePushMsg> {
    int countByExample(PrpmMobilePushMsgExample example);

    int deleteByExample(PrpmMobilePushMsgExample example);

    List<PrpmMobilePushMsg> selectByExample(PrpmMobilePushMsgExample example);

    int updateByExampleSelective(@Param("record") PrpmMobilePushMsg record, @Param("example") PrpmMobilePushMsgExample example);

    int updateByExample(@Param("record") PrpmMobilePushMsg record, @Param("example") PrpmMobilePushMsgExample example);

    int updateFlagReadByIds(List<String> messageUuids);

    int updateFlagDeleteByIds(List<String> messageUuids);
    /** 获取推送消息列表
     * @param request 请求的参数
     * @return 返回推送消息列表
     */
    List<PrpmMobilePushMsg> getMsgList(MsgListRequest request);
}